#ifndef _SATA_DISK_H_
#define _SATA_DISK_H_
#include <hld/hld_dev.h>



struct sata_dev{
	struct sata_dev *next;
	INT32 type;
	INT8 name[HLD_MAX_NAME_SIZE];
	
	//struct sata_host *shost;
	void *priv;
	
};


struct sata_disk_info{
	UINT8  serial_number[20];
	UINT8  fw_version[8];
	UINT8  model_number[40];
};

/*   SATA - API Prototype   */
void sata_attach(void(*notify)(UINT32, UINT32));
unsigned long long sata_disk_capacity (void);
INT32 sata_s3602f_init(struct sata_dev *dev, UINT32 param1);
INT32 sata_read_sector(UINT64 block, UINT8 *buffer,UINT16 sector_nr, UINT32 param1);
INT32 sata_write_sector(UINT64 block, UINT8 *buffer,UINT16 sector_nr, UINT32 param1);
void sata_set_gpio_detect(UINT32 gpio_num, UINT32 enable);
INT32  sata_get_disk_info(struct sata_disk_info * sd_info);
#endif
